package com.kgc.scd.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created On : 2022/11/14.
 * <p>
 * Author : 刘慧枫
 * <p>
 * Description: 用户类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "用户VO")
public class ShopUserVO {

    //用户编号
    @ApiModelProperty(value = "用户编号")
    private String id;

    //用户名
    @ApiModelProperty(value = "用户名")
    private String username;

    //用户密码
    @ApiModelProperty(value = "用户密码")
    private String password;

    //性别 0是男 1是女
    @ApiModelProperty(value = "性别 0是男 1是女")
    private String gender;

    //生日
    @ApiModelProperty(value = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    //注册时间
    @ApiModelProperty(value = "注册时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date registerTime;

    //最后登录时间
    @ApiModelProperty(value = "最后登录时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastLoginTime;

    //最后登录ip
    @ApiModelProperty(value = "最后登录ip")
    private String lastLoginIp;

    //用户等级id
    @ApiModelProperty(value = "用户等级id")
    private Integer userLevelId;

    //昵称
    @ApiModelProperty(value = "昵称")
    private String nickname;

    //手机号
    @ApiModelProperty(value = "手机号")
    private String mobile;

    //注册ip
    @ApiModelProperty(value = "注册ip")
    private String registerIp;

    //微信授权id
    @ApiModelProperty(value = "微信授权id")
    private String weixinOpenid;

    //头像
    @ApiModelProperty(value = "头像")
    private String headImg;

    //积分
    @ApiModelProperty(value = "积分")
    private Integer integration;

}
